package com.ruoze.bdp.entity.datasource;

import com.ruoze.bdp.entity.ClusterEntity;
import com.ruoze.bdp.entity.DataSourceEntity;

import java.io.Serializable;

public class DataSourceClusterVo implements Serializable {
    private DataSourceEntity dataSourceEntity;
    private ClusterEntity clusterEntity;

    public DataSourceClusterVo(DataSourceEntity dataSourceEntity, ClusterEntity clusterEntity) {
        this.dataSourceEntity = dataSourceEntity;
        this.clusterEntity = clusterEntity;
    }

    public DataSourceClusterVo(DataSourceEntity dataSourceEntity) {
        ClusterEntity entity = new ClusterEntity();
        this.clusterEntity = entity;
        this.dataSourceEntity = dataSourceEntity;
    }

    public DataSourceClusterVo(ClusterEntity clusterEntity) {
        DataSourceEntity entity = new DataSourceEntity();
        this.dataSourceEntity = entity;
        this.clusterEntity = clusterEntity;
    }

    public DataSourceClusterVo() {
    }

    public DataSourceEntity getDataSourceEntity() {
        return dataSourceEntity;
    }

    public void setDataSourceEntity(DataSourceEntity dataSourceEntity) {
        this.dataSourceEntity = dataSourceEntity;
    }

    public ClusterEntity getClusterEntity() {
        return clusterEntity;
    }

    public void setClusterEntity(ClusterEntity clusterEntity) {
        this.clusterEntity = clusterEntity;
    }
}
